module.exports = {
  title: "Aplee",
  description: "尘嚣中的宁静",
  dest: "docs",
  base: "/blog/",
  locales: {
    "/": {
      lang: "zh-CN",
    },
  },
  head: [
    [
      "link",
      {
        rel: "icon",
        href: "/avatar.png",
      },
    ],
    [
      "meta",
      {
        name: "viewport",
        content: "width=device-width,initial-scale=1,user-scalable=no",
      },
    ],
  ],
  plugins: [
    ["@vuepress/register-components"],
    [
      //先安装在配置， npm install @vuepress-reco/vuepress-plugin-kan-ban-niang --save
      "@vuepress-reco/vuepress-plugin-kan-ban-niang",
      {
        theme: [
          "haru1",
          "blackCat",
          "whiteCat",
          "haru2",
          "haruto",
          "koharu",
          "izumi",
          "shizuku",
          "wanko",
          "miku",
          "z16",
        ],
        clean: true, // 是否显示操作按钮
        messages: {
          welcome: "我是Aplee，欢迎你的关注 ",
          home: "心里的话，我想要带你回家。",
          theme: "好吧，希望你能喜欢我的其他小伙伴。",
          close: "再见哦",
        },
        width: 240,
        height: 352,
        modelStyle: {
          left: "30px",
          bottom: "-20px",
          opacity: "0.8",
        },
      },
    ],
    [
      //鼠标点击特效 先安装在配置， npm install vuepress-plugin-cursor-effects --save
      "cursor-effects",
      {
        size: 3, // size of the particle, default: 2
        // shape: ['start'],  // shape of the particle, default: 'star'
        zIndex: 999999999, // z-index property of the canvas, default: 999999999
      },
    ],
    [
      //动态标题 先安装在配置， npm install vuepress-plugin-dynamic-title --save
      "dynamic-title",
      {
        showIcon: "/favicon.ico",
        showText: "(/≧▽≦/)咦！又好了！",
        hideIcon: "/failure.ico",
        hideText: "(●—●)喔哟，崩溃啦！",
        recoverTime: 2000,
      },
    ],
    [
      //vuepress复制粘贴提示插件P 先安装在配置 npm install vuepress-plugin-nuggets-style-copy --save
      "vuepress-plugin-nuggets-style-copy",
      {
        copyText: "复制代码",
        tip: {
          content: "复制成功!",
        },
      },
    ],
  ],
  theme: "reco",
  themeConfig: {
    nav: require("./nav"),
    subSidebar: "auto",
    sidebar: {
      "/article/informal-essay/": ["", "timer"],
    },
    type: "blog",
    blogConfig: {
      category: {
        location: 4,
        text: "分类",
      },
    },
    friendLink: [
      {
        title: "vuepress-theme-reco",
        desc: "A simple and beautiful vuepress Blog & Doc theme.",
        avatar:
          "https://vuepress-theme-reco.recoluan.com/icon_vuepress_reco.png",
        link: "https://vuepress-theme-reco.recoluan.com",
      },
    ],
    valineConfig: {
      appId: "Lt08OCjedmFHtvj8mRjiQYxW-gzGzoHsz", // your appId
      appKey: "Q1oaJOIF7mhhhDjc3PbxaQUR", // your appKey
    },
    logo: "/avatar.png",
    search: true,
    searchMaxSuggestions: 10,
    lastUpdated: "Last Updated",
    author: "Fangyuan He",
    authorAvatar: "/logo.jpeg",
    record: "Aplee",
    startYear: "2022",
  },
  markdown: {
    lineNumbers: true,
  },
};
